package org.lionel.design.factory.simplefactory;

public class SimpleFactory {
    public Product createProduct(Class<?> clazz) {
        Product product = null;
        if (clazz.equals(Phone.class)) {
            product = new Phone();
        } else if (clazz.equals(Computer.class)) {
            product = new Computer();
        }
        return product;
    }
}
